package cn.edu.neusoft.wuguangsheng.flowerimpression.model;

import cn.edu.neusoft.wuguangsheng.flowerimpression.bean.SuccessBean;
import cn.edu.neusoft.wuguangsheng.flowerimpression.iface.CommentFKnowIface;
import cn.edu.neusoft.wuguangsheng.flowerimpression.listener.TListener;
import cn.edu.neusoft.wuguangsheng.flowerimpression.service.AllService;
import retrofit2.Call;
import retrofit2.Retrofit;

public class CommentFKnowModel extends RetrofitBaseModel implements CommentFKnowIface<SuccessBean> {
    private AllService allService;
    private Retrofit retrofit;
    public CommentFKnowModel(){
        retrofit=getRetrofit();
        allService=getAllService();
    }
    @Override
    public void commentFKnow(String userid, String fknowid, String fkccontent, TListener<SuccessBean> tListener) {
        Call<SuccessBean> call = allService.commentFKnow(userid,fknowid,fkccontent);
        callenqueue(call,tListener);
    }
}
